package com.jianjun.project.monitor.server;

import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.jianjun.framework.web.domain.AjaxResult;
import com.jianjun.framework.web.interceptor.DataScope;
import com.jianjun.project.common.domain.Server;
import lombok.SneakyThrows;

/**
 * 服务器监控
 *
 * @author source
 */
@Path(value = "/monitor/server")
public class ServerController extends Controller {
    @SneakyThrows
    @DataScope(permission = "monitor:server:list")
    public void index() {
        Server server = new Server();
        server.copyTo();
        renderJson(AjaxResult.success(server));
    }
}
